package com.concurrent.sample.business.manager;

import com.concurrent.sample.business.dto.CashFlowMessageDTO;
import com.concurrent.sample.business.entity.CashFlowEntity;

public interface CashFlowManagerService {

  /**
   * 加锁更新
   * @param param
   * @return
   */
  CashFlowEntity saveByLock(CashFlowMessageDTO param);

  CashFlowEntity loadMemoryByCustomer(String customerNo);

  void saveMemoryByCustomer(CashFlowEntity cashFlowEntity);

  /**
   * 数据库存数据，Redis 存变化值
   * @param param
   * @return
   */
  CashFlowEntity saveByMemory(CashFlowMessageDTO param);


}
